package com.rop.znyx.model.activity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rop.znyx.model.base.BaseEntity;
import com.rop.znyx.model.product.SkuInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel(description = "SecKillSku")
@TableName("SecKill_sku")
public class SecKillSku extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 秒杀活动id
	 */
	@ApiModelProperty(value = "秒杀活动id")
	@TableField("SecKill_id")
	private Long SecKillId;

	/**
	 * 活动场次id
	 */
	@ApiModelProperty(value = "活动场次id")
	@TableField("SecKill_time_id")
	private Long SecKillTimeId;

	/**
	 * 商品id
	 */
	@ApiModelProperty(value = "商品id")
	@TableField("sku_id")
	private Long skuId;

	/**
	 * spu名称
	 */
	@ApiModelProperty(value = "spu名称")
	@TableField("sku_name")
	private String skuName;

	/**
	 * 展示图片
	 */
	@ApiModelProperty(value = "展示图片")
	@TableField("img_url")
	private String imgUrl;

	/**
	 * 秒杀价格
	 */
	@ApiModelProperty(value = "秒杀价格")
	@TableField("SecKill_price")
	private BigDecimal SecKillPrice;

	/**
	 * 秒杀总量
	 */
	@ApiModelProperty(value = "秒杀总量")
	@TableField("SecKill_stock")
	private Integer SecKillStock;

	/**
	 * 每人限购数量
	 */
	@ApiModelProperty(value = "每人限购数量")
	@TableField("SecKill_limit")
	private Integer SecKillLimit;

	/**
	 * 秒杀销量
	 */
	@ApiModelProperty(value = "秒杀销量")
	@TableField("SecKill_sale")
	private Integer SecKillSale;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	@TableField("SecKill_sort")
	private Integer SecKillSort;

	/**
	 * sku信息
	 */
	@ApiModelProperty(value = "sku信息")
	@TableField(exist = false)
	private SkuInfo skuInfo;

}